﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Addnewproduct.aspx.cs" Inherits="Store_Keeper_Addnewproduct" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        
    <dx:ASPxPanel  ID="ASPxPanel1" runat="server" ClientIDMode="AutoID" 
        Height="447px" Width="100%">
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                &nbsp;<table width="100%">
                    <tr>
                        <td class="style5">
                            <strong></strong>
                        </td>
                        <td class="style3">
                            <strong>
                            <asp:Label ID="Label4" runat="server" CssClass="style24" Text="Category Name" 
                                Width="100px"></asp:Label>
                            </strong>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td class="style14">
                            <strong>
                            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                                DataSourceID="SqlDataSource10" DataTextField="Cat_Name" 
                                DataValueField="Cat_ID">
                            </asp:DropDownList>
                            </strong>
                        </td>
                        <td class="style15">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;</td>
                        <td class="style3">
                            <strong>Subcategory ID</strong></td>
                        <td>
                            &nbsp;</td>
                        <td class="style14">
                            <strong>
                            <asp:DropDownList ID="DropDownList2" runat="server" 
                                DataSourceID="SqlDataSource2" DataTextField="Sub_Cat_Name" 
                                DataValueField="Sub_Cat_Name">
                            </asp:DropDownList>
                            </strong>
                        </td>
                        <td class="style15">
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td class="style24" colspan="6">
                            <hr class="style12" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;</td>
                        <td class="style3">
                            <strong>Item Code</strong></td>
                        <td>
                            &nbsp;</td>
                        <td class="style14">
                            <dx:ASPxTextBox ID="Productid" runat="server" BackColor="#D8E3B6" 
                                ClientIDMode="AutoID" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                CssPostfix="BlackGlass" ReadOnly="True" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="150px">
                                <ValidationSettings>
                                    <ErrorFrameStyle ImageSpacing="4px">
                                        <ErrorTextPaddings PaddingLeft="4px" />
                                    </ErrorFrameStyle>
                                    <RequiredField ErrorText="Please fill this feild" IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxTextBox>
                        </td>
                        <td class="style25">
                            <strong>Product Code</strong></td>
                        <td>
                            <dx:ASPxComboBox ID="ASPxComboBox1" runat="server" ClientIDMode="AutoID" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                OnInit="ASPxComboBox1_Init" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                ValueType="System.String" Width="150px">
                                <Items>
                                    <dx:ListEditItem Text="1" Value="1" />
                                    <dx:ListEditItem Text="2" Value="2" />
                                    <dx:ListEditItem Text="3" Value="3" />
                                    <dx:ListEditItem Text="4" Value="4" />
                                    <dx:ListEditItem Text="5" Value="5" />
                                    <dx:ListEditItem Text="6" Value="6" />
                                    <dx:ListEditItem Text="7" Value="7" />
                                    <dx:ListEditItem Text="8" Value="8" />
                                    <dx:ListEditItem Text="9" Value="9" />
                                    <dx:ListEditItem Text="10" Value="10" />
                                    <dx:ListEditItem Text="11" Value="11" />
                                    <dx:ListEditItem Text="12" Value="12" />
                                    <dx:ListEditItem Text="13" Value="13" />
                                    <dx:ListEditItem Text="14" Value="14" />
                                    <dx:ListEditItem Text="15" Value="15" />
                                    <dx:ListEditItem Text="16" Value="16" />
                                    <dx:ListEditItem Text="17" Value="17" />
                                    <dx:ListEditItem Text="18" Value="18" />
                                    <dx:ListEditItem Text="19" Value="19" />
                                    <dx:ListEditItem Text="20" Value="20" />
                                    <dx:ListEditItem Text="21" Value="21" />
                                    <dx:ListEditItem Text="22" Value="22" />
                                    <dx:ListEditItem Text="23" Value="23" />
                                    <dx:ListEditItem Text="24" Value="24" />
                                    <dx:ListEditItem Text="25" Value="25" />
                                    <dx:ListEditItem Text="26" Value="26" />
                                    <dx:ListEditItem Text="27" Value="27" />
                                    <dx:ListEditItem Text="28" Value="28" />
                                    <dx:ListEditItem Text="29" Value="29" />
                                    <dx:ListEditItem Text="30" Value="30" />
                                    <dx:ListEditItem Text="31" Value="31" />
                                    <dx:ListEditItem Text="32" Value="32" />
                                    <dx:ListEditItem Text="33" Value="33" />
                                    <dx:ListEditItem Text="34" Value="34" />
                                    <dx:ListEditItem Text="35" Value="35" />
                                    <dx:ListEditItem Text="36" Value="36" />
                                    <dx:ListEditItem Text="37" Value="37" />
                                    <dx:ListEditItem Text="38" Value="38" />
                                    <dx:ListEditItem Text="39" Value="39" />
                                    <dx:ListEditItem Text="40" Value="40" />
                                    <dx:ListEditItem Text="41" Value="41" />
                                    <dx:ListEditItem Text="42" Value="42" />
                                    <dx:ListEditItem Text="43" Value="43" />
                                    <dx:ListEditItem Text="44" Value="44" />
                                    <dx:ListEditItem Text="45" Value="45" />
                                    <dx:ListEditItem Text="46" Value="46" />
                                    <dx:ListEditItem Text="47" Value="47" />
                                    <dx:ListEditItem Text="48" Value="48" />
                                    <dx:ListEditItem Text="49" Value="49" />
                                    <dx:ListEditItem Text="50" Value="50" />
                                </Items>
                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                </LoadingPanelImage>
                                <ButtonStyle Width="11px">
                                </ButtonStyle>
                                <ValidationSettings ErrorText="Error has occurred">
                                    <ErrorFrameStyle ImageSpacing="4px">
                                        <ErrorTextPaddings PaddingLeft="4px" />
                                    </ErrorFrameStyle>
                                </ValidationSettings>
                            </dx:ASPxComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;</td>
                        <td class="style3">
                            <strong>Item&nbsp; Description</strong></td>
                        <td>
                            &nbsp;</td>
                        <td class="style14">
                            <dx:ASPxTextBox ID="productdescription" runat="server" ClientIDMode="AutoID" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="150px">
                                <ValidationSettings>
                                    <ErrorFrameStyle ImageSpacing="4px">
                                        <ErrorTextPaddings PaddingLeft="4px" />
                                    </ErrorFrameStyle>
                                </ValidationSettings>
                            </dx:ASPxTextBox>
                        </td>
                        <td class="style25">
                            <strong>Item&nbsp; Name</strong></td>
                        <td>
                            <dx:ASPxTextBox ID="productname" runat="server" ClientIDMode="AutoID" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="150px">
                                <ValidationSettings>
                                    <ErrorFrameStyle ImageSpacing="4px">
                                        <ErrorTextPaddings PaddingLeft="4px" />
                                    </ErrorFrameStyle>
                                    <RequiredField ErrorText="Please fill this field" IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;</td>
                        <td class="style3">
                            <strong>Item Brand</strong></td>
                        <td>
                            &nbsp;</td>
                        <td class="style14">
                            <dx:ASPxTextBox ID="brand" runat="server" ClientIDMode="AutoID" Width="150px">
                            </dx:ASPxTextBox>
                        </td>
                        <td class="style25">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style5">
                            &nbsp;</td>
                        <td class="style3">
                            <strong><span class="style24">Purchase</span>&nbsp;<span class="style24">Price</span></strong></td>
                        <td>
                            &nbsp;</td>
                        <td class="style14">
                            <dx:ASPxTextBox ID="purchaseprice" runat="server" ClientIDMode="AutoID" 
                                DisplayFormatString="Rs.{0}" Width="150px">
                                <MaskSettings Mask="&lt;0..9999999g&gt;.&lt;00..99&gt;" />
                                
                            </dx:ASPxTextBox>
                        </td>
                        <td class="style25">
                            <strong>Retail Price </strong>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="retailprice" runat="server" AutoPostBack="True" 
                                ClientIDMode="AutoID" DisplayFormatString="Rs.{0}" 
                                OnTextChanged="retailprice_TextChanged" Width="150px">
                                <MaskSettings Mask="&lt;0..9999999g&gt;.&lt;00..99&gt;" />
                               
                            </dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style24" colspan="6">
                            <hr class="style12" />
                            <span class="style24">&nbsp;</span></td>
                    </tr>
                </table>
                <table class="style24" width="100%">
                    <tr>
                        <td class="style47">
                            &nbsp;</td>
                        <td class="style47">
                            <span class="style24"><strong>Distributor Price</strong></span></td>
                        <td class="style6">
                            <dx:ASPxTextBox ID="productprice" runat="server" BackColor="#D8E3B6" 
                                ClientIDMode="AutoID" DisplayFormatString="Rs.{0}" Width="150px">
                                <MaskSettings IncludeLiterals="DecimalSymbol" 
                                    Mask="&lt;0..99999g&gt;.&lt;00..99&gt;" />
                                <ValidationSettings>
                                    <RequiredField ErrorText="Please Fill this field" IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style47">
                            &nbsp;</td>
                        <td class="style47">
                            <strong>Point Value</strong></td>
                        <td class="style6">
                            <dx:ASPxTextBox ID="pointvalue" runat="server" AutoPostBack="True" 
                                BackColor="#D8E3B6" ClientIDMode="AutoID" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="100px">
                                <MaskSettings Mask="&lt;0..99999g&gt;.&lt;000..999&gt;" />
                                <ValidationSettings>
                                    <ErrorFrameStyle ImageSpacing="4px">
                                        <ErrorTextPaddings PaddingLeft="4px" />
                                    </ErrorFrameStyle>
                                    <RequiredField ErrorText="Please Enter Point Value to this Product" 
                                        IsRequired="True" />
                                </ValidationSettings>
                            </dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style47">
                            &nbsp;</td>
                        <td class="style47">
                            <strong>Bussiness Value</strong></td>
                        <td class="style6">
                            <dx:ASPxTextBox ID="businesspoint" runat="server" BackColor="#D8E3B6" 
                                ClientIDMode="AutoID" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" 
                                CssPostfix="Aqua" SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" 
                                Width="75px">
                                <MaskSettings Mask="&lt;0..99999g&gt;.&lt;000..999&gt;" />
                                <ValidationSettings>
                                    <ErrorFrameStyle ImageSpacing="4px">
                                        <ErrorTextPaddings PaddingLeft="4px" />
                                    </ErrorFrameStyle>
                                </ValidationSettings>
                            </dx:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style47">
                            &nbsp;</td>
                        <td class="style47">
                            <strong>Item image</strong></td>
                        <td>
                            <strong>
                            <asp:FileUpload ID="FileUpload1" runat="server" class="multi" Width="200px" />
                            </strong>
                        </td>
                    </tr>
                    <tr>
                        <td class="style47">
                            &nbsp;</td>
                        <td class="style47">
                            <strong>Status</strong></td>
                        <td>
                            <asp:DropDownList ID="DropDownList3" runat="server" Width="150px">
                                <asp:ListItem>Show</asp:ListItem>
                                <asp:ListItem>Hide</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style46">
                            &nbsp;</td>
                        <td class="style46">
                        </td>
                        <td class="spacer">
                            <asp:Label ID="Label2" runat="server" Text="Label" Visible="False"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="style47">
                            &nbsp;</td>
                        <td class="style47">
                            <dx:ASPxButton ID="ASPxButton2" runat="server" ClientIDMode="AutoID" 
                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                OnClick="ASPxButton2_Click" 
                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                Text="Add New Product">
                            </dx:ASPxButton>
                        </td>
                        <td>
                            <strong>
                            <asp:Label ID="Label3" runat="server" CssClass="style24" ForeColor="#CC0000" 
                                Text="Label" Visible="False"></asp:Label>
                            </strong>
                        </td>
                    </tr>
                    <tr>
                        <td class="style47">
                            &nbsp;</td>
                        <td class="style47">
                            &nbsp;</td>
                        <td>
                            <strong>
                            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                                SelectCommand="SELECT [Sub_Cat_Name] FROM [Tbl_Sub_Category] WHERE ([Cat_Name] = @Cat_Name)">
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="DropDownList1" Name="Cat_Name" 
                                        PropertyName="SelectedValue" Type="String" />
                                </SelectParameters>
                            </asp:SqlDataSource>
                            </strong>
                            <asp:SqlDataSource ID="SqlDataSource10" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                                SelectCommand="SELECT [Cat_Name], [Cat_ID] FROM [Tbl_Category]"></asp:SqlDataSource>
                        </td>
                    </tr>
                </table>
            </dx:PanelContent>
        </PanelCollection>
        <Border BorderColor="#999999" BorderStyle="Solid" />
    </dx:ASPxPanel>
                                        
    </div>
    </form>
</body>
</html>
